package org.usts.trainning.supermarket.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UserCommand {
	public UserCommand() {

	}

	public String findUserByName(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.findUserByName(request, response);
	}

	public String findAllUser(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.getAllUser(request, response);
	}

	public String findUser(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.findUser(request, response);
	}

	public String updateUser(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.updateUser(request, response);
	}

	public String updateUserById(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.updateUserById(request, response);
	}

	public String addUser(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.addUser(request, response);
	}

	public String deleteUserById(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.deleteUser(request, response);
	}

	public String modifyPwd(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.modifyPwd(request, response);
	}

	public String exit(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.eixt(request, response);
	}

	public String searchUser(HttpServletRequest request, HttpServletResponse response) {
		UserContribute contribute = new UserContribute();
		return contribute.searchUser(request, response);
	}

}
